# 1.1 有效数字丢失现象观察
import math as m
x=1
for i in range(15):
    f1 = m.sqrt(x) * (m.sqrt(x + 1) - m.sqrt(x))
    f2 = m.sqrt(x) / (m.sqrt(x + 1) + m.sqrt(x))
    print("x=%-15s f1(x)=%.18f f2(x)=%.18f" % (x ,f1, f2))
    x*=10
